<?php

/**
 * staticPage actions.
 *
 * @package    elearning
 * @subpackage staticPage
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12479 2008-10-31 10:54:40Z fabien $
 */
class staticPageActions extends sfActions
{
 /**
  * Executes index action
  *
  * @param sfRequest $request A request object
  */
  public function executeIndex(sfWebRequest $request)
  {
  }
  
  public function executeShow(sfWebRequest $request)
  {	
	$this->rows = StaticContentPeer::getStaticPage($request->getParameter('aliasname'));
	if(!empty($this->rows)) {
		//Breadcrumb add items
		prestaBreadcrumb::getInstance()->addItem($this->rows->getTitle(), '@staticPage?aliasname='.$this->rows->getAliasName());
	}
  }
  
}
